package kr.hkit.androidcomplete02.ch16;

import kr.hkit.androidcomplete02.R;
import kr.hkit.androidcomplete02.R.layout;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class DialogEx extends Activity {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch16_dialogex);
	}

	public void mOnClick(View v){
		Dialog dlg = new Dialog(this);
		TextView tv = new TextView(this);
		tv.setText("대화상자를 열었습니다");
		dlg.setContentView(tv);
		dlg.setTitle("알립니다");
		dlg.show();
	}
}
